#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main() {
    int r1, r2;
    scanf("%d %d", &r1, &r2);
    printf("%f", 1.0 / ((1.0 / r1) + (1.0 / r2)));
    return 0;
}